<ul class="Portfoliolist">
<?php 

$portcollection = Mage::getModel('portfolio/portfolio')->getCollection()
->addStoreFilter(Mage::app()->getStore()->getId())
->setOrder('created_time ', 'desc');

$route = "portfolio";


Mage::getSingleton('portfolio/status')->addEnabledFilterToCollection($portcollection);

$portcollection->setPageSize(6);
$portcollection->setCurPage(1);
$portcollection->addCatFilter(4);
foreach ($portcollection as $item) 
{
	if($item->getNfile()){
		echo '<li><a href="'.$this->getUrl($route) . $item->getIdentifier().'"><img width="192" height="137" src="'.Mage::getBaseUrl('media').$item->getNfile().'" alt="'.$item->getTitle().'" /></a></li>';
	}
}

?>
</ul>

